#include "mystdio.h"
#include <stdio.h>
int main()
{
    FILE_ *fp = fopen_("./log.txt", "w");
    if (fp == NULL)
    {
        return 1;
    }
    int cnt = 0;
    const char *msg = "hello world";
    while (1)
    {
        fwrite_(msg, strlen(msg), fp);
        sleep(1);
        cnt++;
        printf("%d\n", cnt);
        if (cnt == 10)
            break;
    }
    fclose_(fp);
}
